<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- 引入 layui.css -->
    <link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">

    <!-- 引入 layui.js -->
    <script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>
</head>
<body>
<table class="layui-table">
    <colgroup>
        <col width="150">
        <col width="200">
        <col>
    </colgroup>
    <thead>
    <tr>
        <th>编号</th>
        <th>商户名称</th>
        <th>商户类别</th>
        <th>商品名称</th>
        <th>商品图片</th>
        <th>预售价</th>
        <th>活动状态</th>
        <th>开始时间</th>
        <th>结束时间</th>
        <th>第一阶段</th>
        <th>第二阶段</th>
        <th>已售商品数量</th>
        <th>操作</th>
    </tr>
    </thead>
    @foreach($data as $item)
    <tbody>
    <tr>
        <td>{{$item->id}}</td>
        <td>{{$item->store}}</td>
        <td>{{$item->stroe_type}}</td>
        <td>{{$item->goods_name}}</td>
        <td><img src="{{$item->pic}}"></td>
        <td>{{$item->pre_price}}</td>
        <td>{{$item->status}}</td>
        <td>{{$item->start_time}}</td>
        <td>{{$item->end_time}}</td>
        <td>{{$item->part1}}</td>
        <td>{{$item->part2}}</td>
        <td>{{$item->count}}</td>
        <td><a>编辑</a> <a>删除</a></td>
    </tr>
    @endforeach
    </tbody>
</table>
</body>
</html>
